<?php
include ('conn.php');
include ('pubf.php');
include ('util.php');

if (! is_login())
    die (err_msg ("请先登陆"));


$text = get_header ('text');
$uid  = get_user();
$sql  = "update user set signed='$text' where uid=$uid";
$result = mysql_query ($sql, $db);

if (! $result)
    die (err_msg ("更新签名失败"));

echo (suc_msg ("更新签名成功"));
?>

